Skip to content

Conversation

@mabels
Copy link

@mabels mabels commented Oct 30, 2023

      Added the functionality to deserialize orderedmaps
            into CustomTypes like `JSDict`.
            I added these method to my previous added
            OrderedMap interface:
            - SetKeys(keys []string)
            - InitValues()
            - Clone(v ...map[string]interface{}) OrderedMap

Thx for you awsome foundation.

meno

      In the decode methods the nested orderedMaps had
      not been pointer with prevents the mutation.
      To the fix broke some tests the cast to x.(OrderedMap)
      failed. To Fix this the OrderedMap is now an interface.
      This broke the TestUnmarshalJSONStruct test to fix
      the export of OrderedMapImpl is need. This change
      is a breaking!
        into CustomTypes like `JSDict`.
        I added these method to my previous added
        OrderedMap interface:
        - SetKeys(keys []string)
        - InitValues()
        - Clone(v ...map[string]interface{}) OrderedMap
             Marshal and Unmarshal
             The core is the basic functionality of
             the map
@mabels mabels force-pushed the enable-custom-type-deserialization branch from 8636dde to 280d4a8 Compare October 30, 2023 12:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant